<template>
  <div>
    <span
      slot="label"
      class="project-history"
      :data-history="data.is_history"
      data-label="历"
    ></span>

    <span
      slot="label"
      class="project-history"
      :data-history="data.renewal_type ? 1 : 0"
      :data-label="enumRenewalType[data.renewal_type]"
    ></span>
    <span>{{ data.customer_name }}</span>
  </div>
</template>

<script>
const enumRenewalType = {
  1: '展',
  2: '续',
  3: '新',
  4: '续(无还本)', // 无还本续贷
}
export default {
  components: {},
  props: {
    data: {
      type: Object,
      default: () => ({}),
    },
  },
  data() {
    return {
      enumRenewalType,
    }
  },
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  methods: {},
}
</script>

<style lang="scss" scoped>
.project-history[data-history='1']::before {
  content: attr(data-label);
}
</style>
